home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 November: Tool Chest / Dev.CD Nov 96 TC / Dev.CD Nov 96 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAECreate.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.2 KB  |  35 lines  |  [TEXT/CWIE]

  1. // MSAECreate.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSAECREATE__
  8. #define __MSAECREATE__
  9.  
  10. #include <AppleEvents.h>
  11. #include <AEObjects.h>
  12. #include <AERegistry.h>
  13.  
  14. #include "MSToken.h"
  15.  
  16. pascal OSErr    DoNewElement(const AppleEvent    *theAppleEvent,
  17.                                     AppleEvent    *reply, 
  18.                                     long        handlerRefCon);
  19.  
  20. OSErr            CreateDocument(AEDesc* dataDesc, AEDesc* insertHereDesc,
  21.                                         AEDesc* propertyDesc, AEDesc* result);
  22.  
  23. OSErr            GetBehindWindow(AEDesc* insertDesc, DescType insertType, WindowPtr* behindWindow);
  24. OSErr            SetDocumentPropertyRecord(WindowPtr theWindow, AEDesc* propertyRecord);
  25. OSErr            SetDocumentData(WindowPtr theWindow, AEDesc* dataDesc);
  26.  
  27. OSErr            CreateText(DescType textType, AEDesc* dataDesc, AEDesc* insertHereDesc,
  28.                                                     AEDesc* propertyDesc, AEDesc* result);
  29. OSErr            GetInsertToken(AEDesc* insertDesc, DescType insertType, TextToken* resultToken);
  30. OSErr            CreateAtTextToken(DescType textType, const AEDesc* dataDesc, TextToken* theToken,
  31.                                                         AEDesc* propertyDesc, AEDesc* result);
  32. OSErr            SetTextPropertyRecord(TextToken* aTextToken, AEDesc* propertyRecord);
  33.  
  34. #endif
  35.